import axiosInstance from '@/utils/request.js'

export function login ({username,password}) {
  axiosInstance.post('/login', {
    username: username,
    password: password
  }).then(response => {
    console.log(response.data)
  })
    .catch(error => {
      console.error(error)
    })
}
